
import request from '@/router/axios';
// 变更设备状态记录
export const changeStateRecord = (data) => {
    return request({
        url: '/api/mes-product/ems-equipment-status-record/change-status',
        method: 'post',
        data
    });
};

// 根据设备编码获取设备变更记录
export const changeStateRecordDetail = (equipmentId) => {
    return request({
        url: '/api/mes-product/ems-equipment-status-record/detail-by-equipmentId',
        method: 'get',
        params: {
            equipmentId
        }
    });
};

// 分页查询设备变更记录
export const changeRecordPage = (current, size, params) => {
    return request({
        url: '/api/mes-product/ems-equipment-status-record/page-change-records',
        method: 'get',
        params: {
            ...params,
            current,
            size
        }
    });
};
